package com.javacoo.sftp.client.exception;

/**
 * 自定义Sftp异常
 * <li></li>
 * @author duanyong@javacoo.com
 * @date 2020/5/14 9:57
 */
public class SftpClientException extends BaseException {
    public int id = -1;
    public SftpClientException() {
    }

    public SftpClientException(String message) {
        super(message);
    }
    public SftpClientException(int id,String message) {
        super(message);
        this.id = id;
    }
    public SftpClientException(String message,String... params) {
        super(format(message, (Object[]) params));
        this.errorMessage = format(errorMessage, (Object[]) params);
    }
    public SftpClientException(int id,String message,String... params) {
        super(format(message, (Object[]) params));
        this.id = id;
        this.errorMessage = format(errorMessage, (Object[]) params);
    }
    public SftpClientException(String message, Throwable cause,String... params) {
        super(format(message, (Object[]) params),cause);
        this.errorMessage = format(errorMessage, (Object[]) params);
    }
    public SftpClientException(int id,String message, Throwable cause,String... params) {
        super(format(message, (Object[]) params),cause);
        this.id = id;
        this.errorMessage = format(errorMessage, (Object[]) params);
    }
    public SftpClientException(String message, Throwable cause) {
        super(message, cause);
    }
    public SftpClientException(int id,String message, Throwable cause) {
        super(message, cause);
        this.id = id;
    }

    public SftpClientException(Throwable cause) {
        super(cause);
    }

    public SftpClientException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
